import { axios } from '@/utils/request1'

export const getNewsTypes = () => {
	return  axios({
    url:  '/app/news/types',
    method: 'get'
  })
}

export const fetchNewsList = (params) => {
	return  axios({
	  url:  '/app/news/getNews',
	  method: 'get',
	  params
	})
}

export const getNewsDetail = (id) => {
	return  axios({
	  url:  '/app/news/detail',
	  method: 'get',
	  params: {id}
	})
}